package com.hxzy.boot.controller;

import com.hxzy.boot.pojo.Result;
import com.hxzy.boot.service.UserService;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wzm
 * @create 2023-09-25 11:51
 * project_name:javaweb2308
 */
@RestController
public class UserController01 {

    //注入service实现类
//    @Autowired
//    @Qualifier("userServiceImpl02") //指定使用ioc容器中的名字为xxx的对象来自动装配
    private UserService userService;


//    @RequestMapping("/user/list001")
    public Result getAll(){
        return Result.success(userService.findAll());
    }

}


